

#ifndef SERVER_H
#define SERVER_H


#include "../connection.h"
#include <string>


namespace client_server {
    /* A server listens to a port and handles multiple connections */
    class MessageHandler {
	public:
		MessageHandler(Connection* conn);
		int getCommand();
		std::string getParameters();
		std::string getEndmark();
		
	private:
		std::string readLine(Connection* conn);
		int toInt(const std::string &s);
		std::string command;
		std::string parameters;
		std::string endmark;
	};
}
		 






#endif
